
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Function;
import cn.edu.scau.cmi.hombio.domain.RoleAuthority;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Function entities
 * 
 */
public interface FunctionService {

	/**
	* Load an existing Function entity
	* 
	 */
	public Set<Function> loadFunctions();

	/**
	* Save an existing RoleAuthority entity
	* 
	 */
	public Function saveFunctionRoleAuthorities(Integer id, RoleAuthority related_roleauthorities);

	/**
	* Return all Function entity
	* 
	 */
	public List<Function> findAllFunctions(Integer startResult, Integer maxRows);

	/**
	* Return a count of all Function entity
	* 
	 */
	public Integer countFunctions();

	/**
	* Save an existing Function entity
	* 
	 */
	public void saveFunction(Function function);

	/**
	* Delete an existing Function entity
	* 
	 */
	public void deleteFunction(Function function_1);

	/**
	 */
	public Function findFunctionByPrimaryKey(Integer id_1);

	/**
	* Delete an existing RoleAuthority entity
	* 
	 */
	public Function deleteFunctionRoleAuthorities(Integer function_id, Integer related_roleauthorities_id);
}